﻿using System.Collections.Generic;
using System.Linq;

namespace KelonProud.Configuration.Ui
{
    public static class UiThemes
    {
        public static List<UiThemeInfo> All { get; }

        public static UiThemeInfo Default
        {
            get { return All.FirstOrDefault(f => f.Name == "Defalut"); }
        }

        public static string UiThemeValue(string name)
        {
            var theme = All.FirstOrDefault(w => w.Name == name);

            return theme == null ? Default.CssClass : theme.CssClass;
        }

        static UiThemes()
        {
            All = new List<UiThemeInfo>
            {
                new UiThemeInfo("Defalut", "skin-defalut"),
                new UiThemeInfo("DrakBlue", "skin-dark-blue"),
                new UiThemeInfo("Coffee", "skin-coffee"),
                new UiThemeInfo("PurpleRed", "skin-purple-red"),
                new UiThemeInfo("Green", "skin-green"),
                new UiThemeInfo("Red", "skin-red"),
                new UiThemeInfo("OceanHeader", "skin-ocean-header"),
                new UiThemeInfo("classicBlackHeader", "skin-classic-black-header"),
                new UiThemeInfo("fashionRedHeader", "skin-fashion-red-header"),
                new UiThemeInfo("greenHeader", "skin-green-header"),
            };
        }
    }
}
